@import "@/element-variables.scss";
/* 更改左侧侧边栏 */
.el-submenu.is-active.is-opened .el-submenu__title {
  color: $--color-primary !important;
}
.el-submenu.is-active.is-opened .el-submenu__title i {
  color: $--color-primary !important;
}
.el-menu-item.is-active {
  background: rgba($color: $--color-primary, $alpha: 0.05) !important;
  border-radius: 3px !important;
}
/* 更改公共组件table样式 */
.ces-table-page {
  padding: 0px 0px 8px;
  background: #ffffff;
  border-radius: 8px;
  .el-table__header-wrapper {
    .el-table__cell {
      padding: 12px 0;
    }
  }
}
// 更改table鼠标悬浮的颜色
.el-table__body tr:hover > td.el-table__cell{
  background-color: rgba($color: $--color-primary, $alpha: 0.05) !important;
}
// 更改表头颜色
.ces-table-page thead tr th {
  background: linear-gradient(0deg, #fafafa, #fafafa), #ffffff !important;
  color: #333;
  font-weight: 400;
  font-size: 14px;
  padding: 12px 0;
  font-weight: bold;
}
.ces-table-page tbody tr td {
  color: #595959;
}
/* 更改树节点的状态 */
.el-tree-node__content:hover {
  background: #f0fcf9 !important;
  border-radius: 3px !important;
  color: $--color-primary !important;
}
.el-tree-node.is-current > .el-tree-node__content {
  background: #f0fcf9 !important;
  border-radius: 3px !important;
  color: $--color-primary !important;
}
.el-tree-node__expand-icon {
  color: rgba(0, 0, 0, 0.6) !important;
}
.el-tree-node__expand-icon.is-leaf {
  color: transparent !important;
}
.el-tree-node__content {
  margin-bottom: 6px;
}
._tablepage .el-form-item {
  margin-bottom: 20px;
}
.modal-footer {
  text-align: left !important;
  margin-top: -50px !important;
  margin-left: 50px !important;
  max-height: 450px;
  height: auto !important;
  overflow-y: auto;
}

._login {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

._login .login_inner {
  width: 460px;
  height: 300px;
  margin-top: -150px;
  display: flex;
  justify-content: center;
  box-shadow: 0 0 25px #cac6c6;
}
._login .login_inner .form {
  width: 300px;
  margin-top: 30px;
  text-align: center;
}

._login .login_inner .form .title {
  color: #505458;
}

._login .login_inner .error {
  color: red;
}

.df {
  display: flex;
}
.df-c {
  display: flex;
  align-items: center;
}
.df-c-b {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.overflow-text {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
}
.df-c-c {
  display: flex;
  align-items: center;
  justify-content: center;
}
.el-submenu .el-menu-item {
  height: 36px !important;
  line-height: 36px !important;
  padding: 0 45px;
  min-width: 200px;
  font-size: 12px;
}
.el-submenu__title {
  height: 36px !important;
  line-height: 36px !important;
  font-size: 12px !important;
  color: #262626 !important;
}
.el-submenu__title i {
  color: #262626 !important;
}
.el-submenu [class^="el-icon-"] {
  font-size: 14px !important;
}
.search-content .el-form--inline .el-form-item {
  margin-bottom: 0 !important;
}

.el-dialog {
  border-radius: 4px !important;
  .el-dialog__header {
    padding: 12px 16px !important;
    .el-dialog__title {
      color: rgba(0, 0, 0, 0.85);
      font-family: "PingFang SC";
      font-size: 16px !important;
      font-style: normal;
      line-height: 24px; /* 150% */
      font-weight: 600;
    }
    .el-icon-close {
      color: #646a73;
      font-size: 18px !important;
      font-weight: bold;
    }
  }
  .el-dialog__body {
    padding: 16px;
    background-color: #fff;
  }
  .el-dialog__footer {
    padding: 10px 16px;
  }
}

.cus-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.cus-scrollbar::-webkit-scrollbar-track,
::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 5px solid transparent;
}

.cus-scrollbar::-webkit-scrollbar-track {
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2) inset;
}

.cus-scrollbar::-webkit-scrollbar-thumb {
  min-height: 20px;
  background-clip: content-box;
  box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.2) inset;
}

.cus-scrollbar::-webkit-scrollbar-corner {
  background: transparent;
}
.el-menu--collapse > .el-submenu > .el-submenu__title span.iconfont {
  width: 20px;
  height: 20px;
  font-size: 20px;
  overflow: auto;
  visibility: unset;
}

.action-icon {
  width: 16px;
  height: 16px;
  background-size: 100% 100%;
  margin-right: 4px;
}
.action-icon-search {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-size: 100% 100%;
  margin-right: 4px;
  background-image: url("~@/static/img/common/chaxun.png");
}
.action-icon-add {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-size: 100% 100%;
  margin-right: 4px;
  background-image: url("~@/static/img/common/add.png");
}
.action-icon-del {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-size: 100% 100%;
  margin-right: 4px;
  background-image: url("~@/static/img/common/del.png");
}
.action-icon-export {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-size: 100% 100%;
  margin-right: 4px;
  background-image: url("~@/static/img/common/export.png");
}
.action-icon-import {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-size: 100% 100%;
  margin-right: 4px;
  background-image: url("~@/static/img/common/import.png");
}
.action-icon-refresh {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-size: 100% 100%;
  margin-right: 4px;
  background-image: url("~@/static/img/common/refresh.png");
}

.action-icon-conditional-export{
  width: 14px;
  height: 14px;
  background-image: url("~@/static/img/common/conditional-export.png");
}
.action-icon-current-export{
  width: 14px;
  height: 14px;
  background-image: url("~@/static/img/common/current-export.png");
}

.action-icon-export-all{
  width: 14px;
  height: 14px;
  background-image: url("~@/static/img/common/export-all.png");
}

.action-icon-print{
  width: 14px;
  height: 14px;
  background-image: url("~@/static/img/common/print.png");
}


.search-drawer,
.handle-drawer {
  .el-drawer__header {
    padding: 16px !important;
    margin-bottom: 0 !important;
    font-size: 16px;
    color: rgba($color: #000000, $alpha: 0.85);
    line-height: 24px; /* 150% */
    font-weight: bold;
  }
  .el-drawer__body {
    padding: 8px 26px 52px !important;
    overflow-y: auto;
    .el-form-item__label {
      color: #595959;
      font-size: 14px;
      font-weight: bold;
      line-height: 14px;
      height: 14px;
      padding: 0;
      margin-bottom: 12px;
    }
    .search-drawer__footer,
    .handle-drawer__footer {
      text-align: right;
      position: absolute;
      bottom: 0;
      width: 100%;
      left: 0;
      padding: 8px 26px;
      border-top: 1px solid #e6e6e6;
      z-index: 999;
      background-color: #fff;
    }
  }
}
